SetDSequenceTransferMode
TheSetDSequenceTransferMode
function sets the mode used when drawing the decompressed image.
pascal OSErr SetDSequenceTransferMode (ImageSequence seqID, short mode, const RGBColor *opColor);
seqID
- Contains the unique sequence identifier that was returned by the
DecompressSequenceBegin
function (described on page 3-107).mode
- Specifies the transfer mode used when drawing the decompressed image. The Image Compression Manager supports the same transfer modes supported by QuickDraw's
CopyBits
routine (described in Inside Macintosh: Imaging).opColor
- Contains a pointer to the color for use in
addPin
,subPin
,blend
, andtransparent
operations. The Image Compression Manager passes this color to QuickDraw as appropriate. Ifnil
, the opcolor is left unchanged.DESCRIPTION
The Image Compression Manager supports the same transfer modes supported by QuickDraw'sCopyBits
routine. The new mode takes effect with the next frame in the sequence. For any given sequence, the default opcolor is 50 percent gray and the default mode isditherCopy
.RESULT CODES
noErr 0 No error paramErr -50 Invalid parameter specified SEE ALSO
You set the default transfer mode for a sequence with themode
parameter to theDecompressSequenceBegin
function.